package CreationalPatterns.Prototype.improved;

public class Demo {

  public static void main(String[] args) {
    Sheep sheep = new Sheep(1, "will", "Red");
    sheep.friend = new Sheep(2,"ospreay","gold");
    Sheep sheep2 = (Sheep) sheep.clone();
    Sheep sheep3 = (Sheep) sheep.clone();

    System.out.println(sheep.friend.hashCode());
    System.out.println(sheep2.friend.hashCode());
    System.out.println(sheep3.friend.hashCode());
  }
}
